#include<iostream>
using namespace std;

template<typename T>
void Swap(T& a, T& b);
int main()
{
	int i = 0, j = 1;
	double x = 1.5, y = 2.5;
	cout << i << " " << j << endl;
	cout << x << " " << y << endl;
	Swap(i, j);
	Swap(x, y);
	cout << i << " " << j << endl;
	cout << x << " " << y << endl;
	return 0;
}

template<typename T>
void Swap(T& a, T& b)
{
	T t = a;
	a = b;
	b = t;
}
